fix-build-using-unregisterized-v8.2
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Fri, 30 Nov 2018 10:11:18 +0000 (10:11 +0000)
committerIlias Tsitsimpis <iliastsi@debian.org>
Fri, 30 Nov 2018 10:11:18 +0000 (10:11 +0000)
commite963efa780c48b8904178626e1d43a38229525fd
tree8ab19687e70656a7528975472b0dd48062c689cc
parent1f10c4a9a95f3c5cb95d99fe174e78157498c30a
fix-build-using-unregisterized-v8.2

.
  error: conflicting types for 'ghc_GhcPrelude_zdtrModule4_bytes'
  note: in definition of macro 'EB_'
  #define EB_(X)    extern const char X[]
  note: previous definition of 'ghc_GhcPrelude_zdtrModule4_bytes' was here
  char ghc_GhcPrelude_zdtrModule4_bytes[] = "ghc";
.
 For more information about the problem, see https://phabricator.haskell.org/D4114.
.
 This patch is a rework of https://phabricator.haskell.org/D3741.
 It modifies Stg.h to include the old definitions, if a compiler older than
 8.4 is being used.
.
 This patch can be removed, once ghc-8.2 is no longer the bootstrap compiler.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://ghc.haskell.org/trac/ghc/ticket/15201

Gbp-Pq: Name fix-build-using-unregisterized-v8.2
includes/Stg.h